<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
    <title>修改信息</title>
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="cache-control" content="no-cache">
    <meta http-equiv="expires" content="0">
    <link href="${pageContext.request.contextPath}/static/css/newlogin.css" rel="stylesheet">

<body>
<div class="signinpanel">

    <div class="signin-info">
        <div style="text-align:center;">
            <h1 class="signin-title">修改信息</h1>
            <p>欢迎登录用户管理系统</p>
        </div>


<%--        <table>--%>
<%--            <c:forEach items="${admin}" var="a">--%>
<%--                <tr>--%>
<%--                    <td>--%>
<%--                            ${a.adminid}--%>
<%--                    </td>--%>
<%--                    <td>--%>
<%--                            ${a.username}--%>
<%--                    </td>--%>
<%--                    <td>--%>
<%--                            ${a.password}--%>
<%--                    </td>--%>
<%--                    <td>--%>
<%--                            ${a.picurl}--%>
<%--                    </td>--%>
<%--                </tr>--%>
<%--            </c:forEach>--%>
<%--        </table>--%>
        <form class="layui-form" action="${pageContext.request.contextPath}/adminupdate" method="post">
            <table>
                <input type="hidden" name="id" value="${admin[0].adminid}"/>
                <%--            <tr>--%>
                <%--                <td colspan="2">--%>
                <%--                    <input type="text" name="id" placeholder="请输入ID"/>--%>
                <%--                </td>--%>
                <%--            </tr>--%>

                <tr>
                    <td colspan="2">
                        <input type="text" name="username" value="${admin[0].username}" placeholder="请输入用户名"/>
                    </td>
                </tr>
                <tr>
                    <td colspan="2">
                        <input type="password" name="password" value="${admin[0].password}" placeholder="请输入电话"/>
                    </td>
                </tr>
                <tr>
                    <td colspan="2">
                        <input type="text" name="picurl" placeholder="请输入头像"/>
                    </td>
                </tr>

                <tr>
                    <td colspan="2">
                        <font color="red" size="2">${loginError }</font>
                    </td>
                </tr>
                <tr>
                    <td colspan="2" align="center">
                        <button type="submit" class="signin-btn">修改</button>
                    </td>
                </tr>

            </table>
        </form>
    </div>
</div>
</body>
</html>

